package cn.jiedh.app.meiweidk.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @name：MXK
 * @author：达摩
 * @phone：
 * @createTime： 十月-26
 * @modifyTime： 26:15:05
 * @explain：v2.0
 */
public class SurveyBean implements Serializable{
    private int productId;//	产品ID
    private String productImgUrl;//产品图片
    private String productName;//	产品名
    private double moneyMin = 0;//	最小金额
    private double moneyMax = 0;//	最大金额
    private int rateType;//	利率类型 1月利率 2日利率'
    private double rate;//	利率
    private int questionnaireId;//	问卷ID
    private String questionnaireName;//	问卷名
    private List<SurveyQuestion> problemList;//	问题列表

    public String getProductImgUrl() {
        return productImgUrl;
    }

    public void setProductImgUrl(String productImgUrl) {
        this.productImgUrl = productImgUrl;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public double getMoneyMin() {
        return moneyMin;
    }

    public void setMoneyMin(double moneyMin) {
        this.moneyMin = moneyMin;
    }

    public double getMoneyMax() {
        return moneyMax;
    }

    public void setMoneyMax(double moneyMax) {
        this.moneyMax = moneyMax;
    }

    public int getRateType() {
        return rateType;
    }

    public void setRateType(int rateType) {
        this.rateType = rateType;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    public int getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(int questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public String getQuestionnaireName() {
        return questionnaireName;
    }

    public void setQuestionnaireName(String questionnaireName) {
        this.questionnaireName = questionnaireName;
    }

    public List<SurveyQuestion> getProblemList() {
        return problemList;
    }

    public void setProblemList(List<SurveyQuestion> problemList) {
        this.problemList = problemList;
    }



    public static class SurveyQuestion implements Serializable{
        private int problemId;//	问题ID
        private String problem;//	问题
        private int type;//	问题类型 1单选 2多选 3 文本
        private String option;//	选项(type为3时该字段为空或者不返回)
        private String answer = "";//   用户回答 多条选项以&隔开

        public String getAnswer() {
            return answer;
        }

        public void setAnswer(String answer) {
            this.answer = answer;
        }

        public int getProblemId() {
            return problemId;
        }

        public void setProblemId(int problemId) {
            this.problemId = problemId;
        }

        public String getProblem() {
            return problem;
        }

        public void setProblem(String problem) {
            this.problem = problem;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getOption() {
            return option;
        }

        public void setOption(String option) {
            this.option = option;
        }

    }

}
